package com.lbh.structures.components.render;

/***
 * project:JRuntime
 * package:com.lbh.structures.components.render
 *
 * @author user:lenovo QQ:1601078366
 * @date 2021/10/19 23:42
 * @version V1.0
 */
public class VertexBuffer {

    public static final int VERTEX_XYZ_FLOAT = 0;
    public static final int VERTEX_XYZW_FLOAT = 1;

    public static final int COLOR_NONE = 0;
    public static final int COLOR_R8G8B8 = 1;
    public static final int COLOR_R8G8B8A8 = 2;
    //TODO: 以后加上texcoord等，再以后支持Shader

    public VertexInfo[] vertices;

    public VertexBuffer(int count){
        vertices = new VertexInfo[count];
        for (int i = 0; i < vertices.length; i++) {
            vertices[i] = new VertexInfo();
        }
    }
}
